package top.yehot.kettle.boot.models.vo.directory;

import java.util.ArrayList;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 资源库目录树
 * 
 * @author lquan
 * @date 2022年6月1日 下午9:08:59
 */
@Data
@Accessors(chain = true)
@ApiModel("资源库目录树")
public class DirectoryVO {

	@ApiModelProperty("id")
	private String id;
	
	@ApiModelProperty("父级ID")
	private String pid;
	
	@ApiModelProperty("节点状态，'open'或 'closed'")
	private String state = "closed";
	
	@ApiModelProperty("名称")
	private String text;
	
	@ApiModelProperty("全路径")
	private String fullPath;
	
	@ApiModelProperty("子节点信息")
	private List<DirectoryVO> children = new ArrayList<>();
	
}
